home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-07-14 | 1.3 KB | 59 lines |
- CC = cc
- INCLUDEDIRS =
- BINDIR = /local/bin
- MANDIR = /local/man/man1
- #
-
- # use this if SGI IRIX 4.x
- # LIBRARIES = -lmld -lsun -lc_s
- # MYDEFS = -DIRIX
-
- # use this if Mips RISC/OS 4.x
- # LIBRARIES = -lmld -lbsd
- # MYDEFS = -DMIPS
- # INCLUDEDIRS = -I/usr/include/bsd
-
- # use this if Sun SunOS 4.1.*
- LIBRARIES = -lkvm
- MYDEFS = -DSUN -DHAVE_KVM -DDEBUG
-
- # use this if BSD-4.x based
- # LIBRARIES =
- # MYDEFS =
-
- # set NOIDENT to whereever you want the file containing hosts not to
- # rfc931-query to be located. Remove if no default desired.
- DEFS = $(MYDEFS) -DNOIDENT=\"/etc/hosts.noident\"
- CFLAGS = $(DEFS) -g $(INCLUDEDIRS)
- LDFLAGS =
- LINTFLAGS = $(DEFS) -ha $(INCLUDEDIRS)
- SRCS = tcplist.c utils.c kvm.c
- OBJS = $(SRCS:.c=.o)
- RM = /bin/rm -rf
-
- all:: tcplist
-
- tcplist: $(OBJS)
- $(RM) $@
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBRARIES)
- lint:
- lint $(LINTFLAGS) $(SRCS)
- lintport:
- lint -p $(LINTFLAGS) $(SRCS)
- clean:
- rm -f $(OBJS) tcplist
- install:
- strip tcplist
- cp tcplist $(BINDIR)
- chgrp kmem $(BINDIR)/tcplist
- chmod 2755 $(BINDIR)/tcplist
- installman:
- cp tcplist.1 $(MANDIR)
- chmod 644 $(MANDIR)/tcplist.1
- depend:
- makedepend -- $(CFLAGS) -- $(SRCS)
- shar:
- shar COPYRIGHT MANIFEST Makefile README kvm.c kvm.h patchlevel.h \
- paths.h tcplist.1 tcplist.c utils.c utils.h >tcplist.shar
- # DO NOT DELETE THIS LINE -- make depend depends on it.
-